-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix StreamConsumer wakeup races #666
Conversation
Nice finding @trtt! This looks correct to me but if @duarten, @davidblewett and @fede1024 could also give it another look would be great. |
src/consumer/base_consumer.rs
Outdated
let evname = rdsys::rd_kafka_event_name(event.ptr()); | ||
CStr::from_ptr(evname).to_bytes() | ||
}; | ||
let evname = String::from_utf8(buf.to_vec()).unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please let's try to avoid to panic here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure. I'm not even sure why I changed it in the first place
934c580
I will try to review this this week. I was hopeful it would address the flaky |
see #665